Page({
    data: {
        detail: {},
        imgArr: [
            'https://dimg04.c-ctrip.com/images/0106y1200098x6r2c3928_R_1600_10000.jpg', // 图片链接1  
            'https://dimg04.c-ctrip.com/images/100n16000000zmozp8649_C_1600_1200.jpg', // 图片链接2  
            'https://dimg04.c-ctrip.com/images/100c16000000zq9z49F56_C_1600_1200.jpg',
            // ... 更多图片链接  
        ],
    },

    onLoad: function (options) {
        const itemString = decodeURIComponent(options.item || '{}');
        const item = JSON.parse(itemString);
        this.setData({
            detail: item
        });
    },
    // 前往导航
    navigateLocation(e) {
        const {
            latitude
        } = e.currentTarget.dataset
        const {
            longitude
        } = e.currentTarget.dataset
        wx.openLocation({
            latitude: Number(latitude),
            longitude: Number(longitude)
        })
    },
});